<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/qt3support/itemviews/q3listbox.cpp -->
<head>
  <title>Qt 4.3: Q3ListBoxText Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Q3ListBoxText Class Reference<br /><sup><sup>[<a href="qt3support.html">Qt3Support</a> module]</sup></sup></h1>
<p>The Q3ListBoxText class provides list box items that display text. <a href="#details">More...</a></p>
<pre> #include &lt;Q3ListBoxText&gt;</pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html">Porting to Qt 4</a> for more information.</p>
<p>Inherits <a href="q3listboxitem.html">Q3ListBoxItem</a>.</p>
<ul>
<li><a href="q3listboxtext-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/><b><a href="q3listboxtext.html#Q3ListBoxText">Q3ListBoxText</a></b> ( Q3ListBox * <i>listbox</i>, const QString &amp; <i>text</i> = QString() )</li>
<li><div class="fn"/><b><a href="q3listboxtext.html#Q3ListBoxText-2">Q3ListBoxText</a></b> ( const QString &amp; <i>text</i> = QString() )</li>
<li><div class="fn"/><b><a href="q3listboxtext.html#Q3ListBoxText-3">Q3ListBoxText</a></b> ( Q3ListBox * <i>listbox</i>, const QString &amp; <i>text</i>, Q3ListBoxItem * <i>after</i> )</li>
<li><div class="fn"/><b><a href="q3listboxtext.html#dtor.Q3ListBoxText">~Q3ListBoxText</a></b> ()</li>
<li><div class="fn"/>virtual int <b><a href="q3listboxtext.html#height">height</a></b> ( const Q3ListBox * <i>lb</i> ) const</li>
<li><div class="fn"/>virtual int <b><a href="q3listboxtext.html#width">width</a></b> ( const Q3ListBox * <i>lb</i> ) const</li>
</ul>
<ul>
<li><div class="fn"/>14 public functions inherited from <a href="q3listboxitem.html#public-functions">Q3ListBoxItem</a></li>
</ul>
<a name="protected-functions"></a>
<h3>Protected Functions</h3>
<ul>
<li><div class="fn"/>virtual void <b><a href="q3listboxtext.html#paint">paint</a></b> ( QPainter * <i>painter</i> )</li>
</ul>
<ul>
<li><div class="fn"/>3 protected functions inherited from <a href="q3listboxitem.html#protected-functions">Q3ListBoxItem</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The Q3ListBoxText class provides list box items that display text.</p>
<p>The text is drawn in the widget's current font. If you need several different fonts, you must implement your own subclass of <a href="q3listboxitem.html">Q3ListBoxItem</a>.</p>
<p>See also <a href="q3listbox.html">Q3ListBox</a> and <a href="q3listboxitem.html">Q3ListBoxItem</a>.</p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="Q3ListBoxText"></a>Q3ListBoxText::Q3ListBoxText ( <a href="q3listbox.html">Q3ListBox</a> * <i>listbox</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i> = QString() )</h3>
<p>Constructs a list box item in list box <i>listbox</i> showing the text <i>text</i>.</p>
<h3 class="fn"><a name="Q3ListBoxText-2"></a>Q3ListBoxText::Q3ListBoxText ( const <a href="qstring.html">QString</a> &amp; <i>text</i> = QString() )</h3>
<p>Constructs a list box item showing the text <i>text</i>.</p>
<h3 class="fn"><a name="Q3ListBoxText-3"></a>Q3ListBoxText::Q3ListBoxText ( <a href="q3listbox.html">Q3ListBox</a> * <i>listbox</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i>, <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>after</i> )</h3>
<p>Constructs a list box item in list box <i>listbox</i> showing the text <i>text</i>. The item is inserted after the item <i>after</i>, or at the beginning if <i>after</i> is 0.</p>
<h3 class="fn"><a name="dtor.Q3ListBoxText"></a>Q3ListBoxText::~Q3ListBoxText ()</h3>
<p>Destroys the item.</p>
<h3 class="fn"><a name="height"></a>int Q3ListBoxText::height ( const <a href="q3listbox.html">Q3ListBox</a> * <i>lb</i> ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Returns the height of a line of text in list box <i>lb</i>.</p>
<p>Reimplemented from <a href="q3listboxitem.html#height">Q3ListBoxItem</a>.</p>
<p>See also <a href="q3listboxtext.html#paint">paint</a>() and <a href="q3listboxtext.html#width">width</a>().</p>
<h3 class="fn"><a name="paint"></a>void Q3ListBoxText::paint ( <a href="qpainter.html">QPainter</a> * <i>painter</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Draws the text using <i>painter</i>.</p>
<p>Reimplemented from <a href="q3listboxitem.html#paint">Q3ListBoxItem</a>.</p>
<h3 class="fn"><a name="width"></a>int Q3ListBoxText::width ( const <a href="q3listbox.html">Q3ListBox</a> * <i>lb</i> ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Returns the width of this line in list box <i>lb</i>.</p>
<p>Reimplemented from <a href="q3listboxitem.html#width">Q3ListBoxItem</a>.</p>
<p>See also <a href="q3listboxtext.html#paint">paint</a>() and <a href="q3listboxtext.html#height">height</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
